{include file="header.tpl"}
<div id="frame"> 
<h1>
{php}
$pos = strpos($_SERVER['REQUEST_URI'], 'action=archive');
if ($pos == true) echo "Archives";
else echo "Actualit&eacute;s";
{/php}
</h1>
{section name=news loop=$data[0]}
<table class="news{if $smarty.section.news.iteration % 2 == 0}even{else}uneven{/if}">

<tr class="titre">
	<td align="center"><span style="color: black; font-size:14px">{$data[0][news]->getTitle()}</span></td>
</tr>

<tr class="date">
	<td align="right"><span style="color: black; font-size:10px">{$data[0][news]->getDate_creat()|date_format:"%A %d %B"}</span></td>
</tr>

<tr height="10px">
	<td></td>
</tr>

<tr height="50px">
	<td align="center">{$data[0][news]->getIntro()}</td>
</tr>

<tr height="15px">
	<td align="right"><span><a href="index.php?module=news&action=detail&id={$data[0][news]->getId_news()}">Suite...</a></span></td>
</tr>
</table>
{/section}
{php}
//pas de lien vers les archives si on est sur la page des archives
$pos = strpos($_SERVER['REQUEST_URI'], 'action=archive');
if ($pos === false) {
{/php}
<h2>
<a href="index.php?module=news&action=archive">Archives</a>
</h2>
{php}
}
{/php}
</div>
{include file="footer.tpl"}





